Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DC] Use href and target instead of onClick for opening URLs #7923

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

yoonaoh
Copy link
Collaborator

@yoonaoh yoonaoh commented Nov 27, 2024

FixesAB#30348749

For External Git, repo can be any value, including pseudoURLs, which can lead to XSS attacks. Using href on the Link component instead of onClick={window.open()}, will catch any unsafe URLs

image

Copy link
Contributor

@miyukiabe-baxter miyukiabe-baxter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@yoonaoh yoonaoh merged commit 4bd2421 into dev Dec 2, 2024
7 checks passed
@yoonaoh yoonaoh deleted the yoonaoh-xss-vulnerability branch December 2, 2024 18:28
yoonaoh added a commit that referenced this pull request Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants